﻿
using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.Profile;
using Gift.Model.ENUM;


    public partial class admin_order_order_query : BaseAdmin
    {
        // Fields
        public string payinfo = "";
        public string shipmsg = "";

        // Methods
        private void Bind()
        {
            string sql = "select shippingid,shippingname,shippingpay from DB_Shipping where flag=1";
            DataTable table = SQLAccess.GreatDs(sql).Tables[0];
            if (table.Rows.Count > 0)
            {
                foreach (DataRow row in table.Rows)
                {
                    string shipmsg = this.shipmsg;
                    this.shipmsg = shipmsg + "<option value='" + row["shippingid"].ToString() + "'>" + row["shippingname"].ToString() + "</option>";
                }
            }
            sql = "select payid,payname,paycontent,pay from DB_Pay where flag=1";
            table = SQLAccess.GreatDs(sql).Tables[0];
            if (table.Rows.Count > 0)
            {
                foreach (DataRow row2 in table.Rows)
                {
                    string payinfo = this.payinfo;
                    this.payinfo = payinfo + "<option value='" + row2["payid"].ToString() + "'>" + row2["payname"].ToString() + "</option>";
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (!base.IsPostBack)
            {
               // base.ValidateLoginRule(ERule.OrderQuery, ERule.OrderQuerySelf);
                this.Bind();
            }
        }

   
    }